Page({
  data: {
    region: []
  },
  bindRegionChange(e) {
    this.setData({
      region: e.detail.value
    });
  },
  confirm() {
    const pages = getCurrentPages();
    const prev = pages[pages.length - 2];
    // 新增打印
    console.log('prev page', prev);
    prev.onRegionConfirm({ detail: this.data.region });
    wx.navigateBack();
  },
  cancel() {
    wx.navigateBack();
  }
});